﻿using Hangfire;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.HangFire
{
    class Program
    {
        static void Main(string[] args)
        {
            BackgroundJob.Enqueue(() => Console.WriteLine("Simple!"));
            BackgroundJob.Schedule(() => Console.WriteLine("Reliable!"), TimeSpan.FromDays(7));
            RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);
        }
    }
}
